# -*- coding: utf-8 -*-
from common.dbutils import MySQLDBUtils

MYSQL_APP_HOST = '47.92.112.59'
MYSQL_APP_DBNAME = 'qicheng'
MYSQL_APP_USERNAME = 'qic'
MYSQL_APP_PASSWORD = 'qic2017.,/'

# 客户端app连接配置
mysql_conn_app_dict = dict(host=MYSQL_APP_HOST, port=3306,
                           user=MYSQL_APP_USERNAME,
                           pwd=MYSQL_APP_PASSWORD,
                           db=MYSQL_APP_DBNAME, charset='utf8',
                           max_idle_connections=10,
                           max_open_connections=100, max_recycle_sec=3)

mysql_app_pool = MySQLDBUtils(mysql_conn_app_dict)

#定义常量, appId、appKey、masterSecret 采用本文档 "第二步 获取访问凭证 "中获得的应用配置
APPID = 'orA7ZTYdcH8NnZ27rsfHP3';
APPKEY = 'xlRkab5luvA0NfxEZopFj9';
MASTERSECRET = 'O6Fiu3d9du8UN9N77e1My7';
HOST = 'http://sdk.open.api.igexin.com/apiex.htm'